Optimal. Leaf size=130 \[ -\frac {2 \sqrt {a+b x} \left (a^2 d^2+b^2 c^2\right )}{b^2 d \sqrt {c+d x} (b c-a d)^2}-\frac {2 a^2}{b^2 \sqrt {a+b x} \sqrt {c+d x} (b c-a d)}+\frac {2 \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{b^{3/2} d^{3/2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {89, 78, 63, 217, 206} \begin {gather*} -\frac {2 \sqrt {a+b x} \left (a^2 d^2+b^2 c^2\right )}{b^2 d \sqrt {c+d x} (b c-a d)^2}-\frac {2 a^2}{b^2 \sqrt {a+b x} \sqrt {c+d x} (b c-a d)}+\frac {2 \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{b^{3/2} d^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 78
Rule 89
Rule 206
Rule 217
Rubi steps
\begin {align*} \int \frac {x^2}{(a+b x)^{3/2} (c+d x)^{3/2}} \, dx &=-\frac {2 a^2}{b^2 (b c-a d) \sqrt {a+b x} \sqrt {c+d x}}+\frac {2 \int \frac {-\frac {1}{2} a (b c+a d)+\frac {1}{2} b (b c-a d) x}{\sqrt {a+b x} (c+d x)^{3/2}} \, dx}{b^2 (b c-a d)}\\ &=-\frac {2 a^2}{b^2 (b c-a d) \sqrt {a+b x} \sqrt {c+d x}}-\frac {2 \left (b^2 c^2+a^2 d^2\right ) \sqrt {a+b x}}{b^2 d (b c-a d)^2 \sqrt {c+d x}}+\frac {\int \frac {1}{\sqrt {a+b x} \sqrt {c+d x}} \, dx}{b d}\\ &=-\frac {2 a^2}{b^2 (b c-a d) \sqrt {a+b x} \sqrt {c+d x}}-\frac {2 \left (b^2 c^2+a^2 d^2\right ) \sqrt {a+b x}}{b^2 d (b c-a d)^2 \sqrt {c+d x}}+\frac {2 \operatorname {Subst}\left (\int \frac {1}{\sqrt {c-\frac {a d}{b}+\frac {d x^2}{b}}} \, dx,x,\sqrt {a+b x}\right )}{b^2 d}\\ &=-\frac {2 a^2}{b^2 (b c-a d) \sqrt {a+b x} \sqrt {c+d x}}-\frac {2 \left (b^2 c^2+a^2 d^2\right ) \sqrt {a+b x}}{b^2 d (b c-a d)^2 \sqrt {c+d x}}+\frac {2 \operatorname {Subst}\left (\int \frac {1}{1-\frac {d x^2}{b}} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c+d x}}\right )}{b^2 d}\\ &=-\frac {2 a^2}{b^2 (b c-a d) \sqrt {a+b x} \sqrt {c+d x}}-\frac {2 \left (b^2 c^2+a^2 d^2\right ) \sqrt {a+b x}}{b^2 d (b c-a d)^2 \sqrt {c+d x}}+\frac {2 \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{b^{3/2} d^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.33, size = 143, normalized size = 1.10 \begin {gather*} \frac {2 \sqrt {a+b x} (b c-a d)^{5/2} \sqrt {\frac {b (c+d x)}{b c-a d}} \sinh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b c-a d}}\right )-2 b \sqrt {d} \left (a^2 d (c+d x)+a b c^2+b^2 c^2 x\right )}{b^2 d^{3/2} \sqrt {a+b x} \sqrt {c+d x} (b c-a d)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.19, size = 102, normalized size = 0.78 \begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {a+b x}}\right )}{b^{3/2} d^{3/2}}-\frac {2 \sqrt {a+b x} \left (\frac {a^2 d (c+d x)}{a+b x}+b c^2\right )}{b d \sqrt {c+d x} (b c-a d)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.91, size = 710, normalized size = 5.46 \begin {gather*} \left [\frac {{\left (a b^{2} c^{3} - 2 \, a^{2} b c^{2} d + a^{3} c d^{2} + {\left (b^{3} c^{2} d - 2 \, a b^{2} c d^{2} + a^{2} b d^{3}\right )} x^{2} + {\left (b^{3} c^{3} - a b^{2} c^{2} d - a^{2} b c d^{2} + a^{3} d^{3}\right )} x\right )} \sqrt {b d} \log \left (8 \, b^{2} d^{2} x^{2} + b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2} + 4 \, {\left (2 \, b d x + b c + a d\right )} \sqrt {b d} \sqrt {b x + a} \sqrt {d x + c} + 8 \, {\left (b^{2} c d + a b d^{2}\right )} x\right ) - 4 \, {\left (a b^{2} c^{2} d + a^{2} b c d^{2} + {\left (b^{3} c^{2} d + a^{2} b d^{3}\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{2 \, {\left (a b^{4} c^{3} d^{2} - 2 \, a^{2} b^{3} c^{2} d^{3} + a^{3} b^{2} c d^{4} + {\left (b^{5} c^{2} d^{3} - 2 \, a b^{4} c d^{4} + a^{2} b^{3} d^{5}\right )} x^{2} + {\left (b^{5} c^{3} d^{2} - a b^{4} c^{2} d^{3} - a^{2} b^{3} c d^{4} + a^{3} b^{2} d^{5}\right )} x\right )}}, -\frac {{\left (a b^{2} c^{3} - 2 \, a^{2} b c^{2} d + a^{3} c d^{2} + {\left (b^{3} c^{2} d - 2 \, a b^{2} c d^{2} + a^{2} b d^{3}\right )} x^{2} + {\left (b^{3} c^{3} - a b^{2} c^{2} d - a^{2} b c d^{2} + a^{3} d^{3}\right )} x\right )} \sqrt {-b d} \arctan \left (\frac {{\left (2 \, b d x + b c + a d\right )} \sqrt {-b d} \sqrt {b x + a} \sqrt {d x + c}}{2 \, {\left (b^{2} d^{2} x^{2} + a b c d + {\left (b^{2} c d + a b d^{2}\right )} x\right )}}\right ) + 2 \, {\left (a b^{2} c^{2} d + a^{2} b c d^{2} + {\left (b^{3} c^{2} d + a^{2} b d^{3}\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{a b^{4} c^{3} d^{2} - 2 \, a^{2} b^{3} c^{2} d^{3} + a^{3} b^{2} c d^{4} + {\left (b^{5} c^{2} d^{3} - 2 \, a b^{4} c d^{4} + a^{2} b^{3} d^{5}\right )} x^{2} + {\left (b^{5} c^{3} d^{2} - a b^{4} c^{2} d^{3} - a^{2} b^{3} c d^{4} + a^{3} b^{2} d^{5}\right )} x}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.46, size = 202, normalized size = 1.55 \begin {gather*} -\frac {2 \, \sqrt {b x + a} b^{2} c^{2} {\left | b \right |}}{{\left (b^{4} c^{2} d - 2 \, a b^{3} c d^{2} + a^{2} b^{2} d^{3}\right )} \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}} - \frac {4 \, \sqrt {b d} a^{2}}{{\left (b^{2} c - a b d - {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2}\right )} {\left (b c {\left | b \right |} - a d {\left | b \right |}\right )}} - \frac {\log \left ({\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2}\right )}{\sqrt {b d} d {\left | b \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.03, size = 654, normalized size = 5.03 \begin {gather*} \frac {a^{2} b \,d^{3} x^{2} \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )-2 a \,b^{2} c \,d^{2} x^{2} \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )+b^{3} c^{2} d \,x^{2} \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )+a^{3} d^{3} x \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )-a^{2} b c \,d^{2} x \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )-a \,b^{2} c^{2} d x \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )+b^{3} c^{3} x \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )+a^{3} c \,d^{2} \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )-2 a^{2} b \,c^{2} d \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )+a \,b^{2} c^{3} \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )-2 \sqrt {b d}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, a^{2} d^{2} x -2 \sqrt {b d}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, b^{2} c^{2} x -2 \sqrt {b d}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, a^{2} c d -2 \sqrt {b d}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, a b \,c^{2}}{\sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \left (a d -b c \right )^{2} \sqrt {b d}\, \sqrt {b x +a}\, \sqrt {d x +c}\, b d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2}{{\left (a+b\,x\right )}^{3/2}\,{\left (c+d\,x\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2}}{\left (a + b x\right )^{\frac {3}{2}} \left (c + d x\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________